control
Class SimulatedBy
java.lang.Object
control.SimulatedBy
public class SimulatedBy
- extends java.lang.Object
Class which contains a couple of states: one target state and one community state
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
targetState
private State targetState
communityState
private CState communityState
SimulatedBy
public SimulatedBy()
SimulatedBy
public SimulatedBy(State ts,
CState cs)
getTargetState
public State getTargetState()
- gets the target state which is present in this pair of states that are in simulation
- Returns:
- a state of the target service
getCommunityState
public CState getCommunityState()
- gets the community state that simulates the target state in this pair
- Returns:
- a list of states which represent a community state
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object